#ifndef __CALENDAR_H_
#define __CALENDAR_H_

#include "stm32f10x.h"
#include "wdtx.h"

struct calendarStruct
{
	uint8_t second;
	uint8_t minute;
	uint8_t hour;
	uint8_t day;
	uint8_t month;
	uint16_t year;
	uint8_t flag;
};

typedef struct calendarStruct* Calendar;

void Calendar_walk(void);
bool Calendar_judge(Calendar c);
Calendar Calendar_getCalendar(void);
void Calendar_init(Calendar c);

#endif
